<?php

namespace V1\Model;


use Think\Model;

class ExpertLevelProfileModel extends Model
{
    protected $tableName = 'expert_level';

    /**
     * 获取专家等级对应的专家名称
     * @param $id
     * @return mixed
     */
    public function get_expert_level($id)
    {
        $map['level_id'] = $id;
        $request = $this->where($map)->field('level_title')->find();
        return $request;
    }
    public function get_expert_level_list(){
        $request = $this->field('level_id,level_title')->order('level_id asc')->select();
        return $request;
    }

}